package com.chen.feign.cart;

import com.chen.model.entity.h5.CartInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author cgj
 * @date 4/26/25 10:02 AM
 */
@FeignClient(value = "service-cart")
public interface CartFeignClient {
    /**
     * /api/order/cart/auth/getAllChecked
     * 获取选中的全部购物车项的列表
     */
    @GetMapping("/api/order/cart/auth/getAllChecked")
    public List<CartInfo> getAllChecked();

    /**
     * 删除用户选中的购物车项目
     * /api/order/cart/auth/deleteChecked
     */
    @DeleteMapping("/api/order/cart/auth/deleteChecked")
    public void deleteChecked();
}
